<%-- 
    Document   : career
    Created on : Jul 3, 2012, 1:35:25 PM
    Author     : MY HAI
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <!-- -->
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>  
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>
    </head>
    <body>
        <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
        <f:view>
            <a4j:form>
                <rich:dataTable value="#{c300Controller.listC300ByID}" var="cus"
                                width="720px; " columnClasses=",columns,columns,columns" rows="8" rowKeyVar="row"
                                id="table" styleClass="machinePosDataTable">

                    <rich:column style="width:20px;">
                        <f:facet name="header">
                            <h:outputText value="STT" />
                        </f:facet>
                        <div style="width:25px;  text-align:center ">
                            <h:outputText value="#{row+1}" />
                        </div>
                    </rich:column>
                    <rich:column style="width:98px;height: 20px">
                        <f:facet name="header">
                            <h:outputText value="#{locale.date_time}" />
                        </f:facet>
                        <div style="width:98px; height: 20px; margin-left:5px;">
                            <h:outputText value="#{cus.cl346}" />
                        </div>
                    </rich:column>
                    <rich:column style="width:auto;">
                        <f:facet name="header">
                            <h:outputText value="#{locale.description}" />
                        </f:facet>
                        <div style="width:auto;">
                            <h:outputText value="#{cus.cb317}" escape="false" />
                        </div>
                    </rich:column>
                    <rich:column width="100px">
                        <f:facet name="header">
                            <h:outputText value="Hoàn thành" />
                        </f:facet>

                        <div style="width:100px; text-align: center">
                            <h:outputText value="#{cus.cn315}%" />
                        </div>
                    </rich:column>
                    <rich:column width="160px">
                        <f:facet name="header">
                            <h:outputText value="#{locale.employee}" />
                        </f:facet>

                        <div style="width:160px;">
                            <h:outputText value="#{cus.hoten}" />
                        </div>
                    </rich:column>
                    <rich:column width="40px">
                        <f:facet name="header">
                            <h:outputText value="Tài liệu" />
                        </f:facet>

                        <div style="width:40px;">
                            <div class="lblDoc">
                                <h:outputLink  value="docReportDetail.jsp?emp=#{c300Controller.emp}&fis=0&FC150=#{cus.fc600}&KeepThis=true&amp;TB_iframe=true&amp;height=420&amp;width=750&amp;modal=true" styleClass="thickbox add_new" >
                                    <h:outputText value="0"/></div>
                                </h:outputLink>    
                                
                            <h:outputLink rendered="#{loginSession.right.PRO_LST_DOC}"   value="uploadfile.jsp?pc150=#{cus.fc600}&page=project.jsp&type=ALL&table=C300&KeepThis=true&amp;TB_iframe=true&amp;height=350&amp;width=550&amp;modal=true" styleClass="thickbox docReport">
                                <img  src="../images/docs_icon.png" height="20px" width="20px" title="Add document"/> 
                            </h:outputLink>
                            

                        </div>
                    </rich:column>

                    <f:facet name="footer">
                        <rich:datascroller id="ds" for="table"></rich:datascroller>
                    </f:facet>
                </rich:dataTable>

            </a4j:form>
        </f:view>
    </body>
</html>